import request from "@/utils/request";
export const getInfoListAPi = (params: any) => {
  return request({
    url: "/carfilm.product_info/index",
    method: "get",
    params,
  });
};

export const getInfoApi = (id: number) => {
  return request({
    url: "/carfilm.product_info/detail",
    method: "get",
    params: { id },
  });
};

export const deleteApi = (id: number) => {
  return request({
    url: "/carfilm.product_info/delete",
    method: "delete",
    params: { id },
  });
};

export const addApi = (data: any) => {
  return request({
    url: "/carfilm.product_info/add",
    method: "post",
    data,
  });
};

export const editApi = (data: any) => {
  return request({
    url: "/carfilm.product_info/update",
    method: "put",
    data,
  });
};
